package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 在线商品检测记录业务对象 erp_collect_product_diagnosis_record
 *
 * @author erp
 * @date 2023-12-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectProductDiagnosisRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * ae产品id
     */
    @NotNull(message = "ae产品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String collectProductId;

    /**
     * 商品主图url
     */
    @NotBlank(message = "商品主图url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imageURLs;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subject;

    /**
     * 白底图
     */
    @NotBlank(message = "白底图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String white;

    /**
     * 营销图
     */
    @NotBlank(message = "营销图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String marketing;

    /**
     * 状态 0-未处理 1-待优化同步 2-已优化同步 
     */
    @NotNull(message = "状态 0-未处理 1-待优化同步 2-已优化同步 不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
